package com.example.demo1.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("/hello")
@RestController
public class HelloController {
    @RequestMapping("/sayhi")
    public String sayhi(){
        return "hi,springboot";
    }
    @RequestMapping("/sayhello")
    public String sayHello(){
        System.out.println("hello");
        return "hello,springboot";
    }
}